import md5 from 'md5';

// export const serverUriPrefix = 'http://localhost:9001';
export const serverUriPrefix = 'https://www.aixt.vip/video-api';

// 抄过来的加密方法，不做其它优化
export const getVerifyParam = () => {
  let c = new Date,
    l = c.getTime(),
    u = 6e4 * c.getTimezoneOffset(),
    m = l + u + 36e5 * 8,
    d = new Date(m),
    h = d.getDay() + 11397,
    p;

  p = (p = d).getDate() + 9 + 9 ^ 10;
  p = (p = md5(String(p))).substring(0, 10);
  p = md5(p);
  h = d.getDay() + 11397;

  return { z: p, s1ig: h };
};